package com.zsgeek.wisdchain.qutu.tools;

import android.support.annotation.Nullable;

import java.util.Collection;

/**
 * @author 王亨彬
 * @date 2018/10/7
 * email：793325917@qq.com
 */
public class TextUtils {
    public static boolean isEmpty(@Nullable CharSequence str) {
        return str == null || str.length() == 0 || str.equals("");
    }

    public static boolean isEmpty(Collection c) {
        return c == null || c.size() == 0;
    }

    public static boolean isEmpty(int[] arr) {
        return arr == null || arr.length == 0;
    }

    public static <E> boolean isEmpty(E[] arr) {
        return arr == null || arr.length == 0;
    }
}
